home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / pump_src / types.h < prev   
C/C++ Source or Header  |  1995-10-26  |  593b  |  42 lines

  1. #ifndef _TYPES_H_
  2. #define _TYPES_H_
  3.  
  4. #pragma pack(1);
  5.  
  6. typedef signed char BYTE;
  7. typedef unsigned char UBYTE;
  8.  
  9. typedef signed short WORD;
  10. typedef unsigned short UWORD;
  11.  
  12. typedef signed long DWORD;
  13. typedef unsigned long UDWORD;
  14.  
  15. typedef int BOOL;
  16. #define TRUE  1
  17. #define FALSE 0
  18.  
  19. struct CPoint {
  20.     WORD x, y, z;
  21. };
  22.  
  23. struct CPoint2D {
  24.     WORD x, y;
  25. };
  26.  
  27. struct CNormal {
  28.     BYTE x, y, z;
  29. };
  30.  
  31. struct CTriangle {
  32.     UWORD p1, p2, p3;
  33. };
  34.  
  35. // Multiplicadores
  36. #define PU *256     // Point Units
  37. #define NU *127     // Normal Units
  38.  
  39. #pragma pack();
  40.  
  41. #endif
  42.